package com.sheng.service.impl;

import com.sheng.dao.UserDao;
import com.sheng.domain.User;
import com.sheng.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.List;
@Component("userServiceImpl22")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public List<User> findAll() {
        List<User> all = userDao.findAll();
        return all;
    }
    public  void  save(User user){
        userDao.save(user);
    }
}
